package com.fnzn.entranceGuard.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fnzn.entranceGuard.entity.CommunityBuilding;
import com.fnzn.entranceGuard.mapper.CurrentUserBeanMapper;
import com.fnzn.entranceGuard.service.ICurrentUserBeanService;
import com.fnzn.entranceGuard.vo.CurrentUserBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Slf4j
@Service
public class CurrentUserBeanServiceImpl extends ServiceImpl<CurrentUserBeanMapper, CurrentUserBean> implements ICurrentUserBeanService {

    @Autowired
    private CurrentUserBeanMapper currentUserBeanMapper;

    @Override
    public List<CurrentUserBean> bingCommunityMessage(String username, String communityId) {
        return currentUserBeanMapper.bingCommunityMessage(username, communityId);
    }

    @Override
    public CommunityBuilding selectByBuildingId(String buildingId) {
        return currentUserBeanMapper.selectByBuildingId(buildingId);
    }

}
